{%extends 'base.html'%} 
{% block body %} 



<div class="container">

    <div class="center">
        <h1>用户注册</h1>
    </div>

    <div class="row">
        <div class="col-md-3 col-sm-2"></div>
        <div class="col-md-6 col-sm-8 col-xs-12">
            <form action="/register" method="POST">
                <div class="form-group">
                    <label for="exampleInputEmail1">请输入你的手机号码</label>
                    <input type="text" class="form-control"  pattern="(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$" required="required" id="exampleInputEmail1" placeholder="phone" name="phone">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword2">请设置你的密码</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword2" placeholder="pass_word" name="pass_word">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword3">请输入你的公司名称</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword3" placeholder="company_name" name="company_name">
                </div>

                <div class="form-group">
                    <label for="exampleInputPassword4">请输入你的姓名</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword4" placeholder="linkman" name="linkman">
                </div>

                <div class="form-group">
                    <label for="exampleInputPassword5">产品名称</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword5" placeholder="proudct_name" name="product_name">
                </div>

                <!-- openid -->
                    <input type="hidden" class="form-control" id="exampleInputPassword1" placeholder="openid" name="openid" value="{{openid}}">
             

                

                <div class="radio">
                    <label class="radio-inline">
                      <input type="radio" name="party" value="A" checked> 甲方
                    </label>

                    <label class="radio-inline">
                        <input type="radio" name="party" value="B"> 乙方
                    </label>
                </div>

                <div class="form-group">
                    <label for="exampleInputPassword1">甲方请输入需求/乙方请输入资源</label>
                    <!-- <input type="text" class="form-control" id="need" placeholder="need"" name="need"> -->
                    <textarea class="form-control" rows="3" name="need" required="required"></textarea>
                </div>



                <div class="center">
                    <button type="submit" class="btn btn-default">Submit</button>

                </div>
            </form>
        </div>


    </div>

</div>
<!-- END container one-->


{% endblock %}

{% block script %}
    <script>
        document.getElementById("demo").innerHTML = "注册";
    </script>
{% endblock %}